import request from '@/utils/request'

// 查询退单记录列表
export function listGradRefOrder(query) {
  return request({
    url: '/dashboard/GradRefOrder/list',
    method: 'get',
    params: query
  })
}

// 查询退单记录详细
export function getGradRefOrder(id) {
  return request({
    url: '/dashboard/GradRefOrder/' + id,
    method: 'get'
  })
}

// 新增退单记录
export function addGradRefOrder(data) {
  return request({
    url: '/dashboard/GradRefOrder',
    method: 'post',
    data: data
  })
}

// 修改退单记录
export function updateGradRefOrder(data) {
  return request({
    url: '/dashboard/GradRefOrder',
    method: 'put',
    data: data
  })
}

// 删除退单记录
export function delGradRefOrder(id) {
  return request({
    url: '/dashboard/GradRefOrder/' + id,
    method: 'delete'
  })
}
